package com.itheima.service;

import com.itheima.entity.Article;
import com.itheima.repository.ArticleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleService {

    @Autowired
    ArticleRepository articleRepository;

    public List<Article> findAll(){
        return articleRepository.findAll();
    }

}